﻿namespace NTLib.Pipe.Network.Descriptors
{
    using System;

    /// <summary>
    /// Define information used to establishe network communication.
    /// </summary>
    public class NetworkAddressDescription : INetworkAddress
    {
        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="NetworkAddressDescription"/> class.
        /// </summary>
        /// <param name="addr">The addr.</param>
        public NetworkAddressDescription(Uri addr)
        {
            this.Uri = addr;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets the URI. Used to define the host, port and some time the protocol itself
        /// </summary>
        public Uri Uri { get; }

        #endregion
    }
}
